{{ if .IsHome }}
<header class="header">
    {{ if and .Site.Params.homeHeaderType (eq .Site.Params.homeHeaderType "slide") }}
        {{ partial "header/header-slide" . }}
    {{ else if and .Site.Params.homeHeaderType (eq .Site.Params.homeHeaderType "img") }}
        {{ partial "header/header-img" . }}
    {{ else if and .Site.Params.homeHeaderType (eq .Site.Params.homeHeaderType "text") }}
        {{ partial "header/header-text" . }}
    {{ else }}
        {{ partial "header/custom-header" . }}
    {{ end }}
</header>
{{ end }}